import request from '@/utils/request'

// 查询二级行业列表
export function listSecondTrade(query) {
  return request({
    url: '/system/city/secondTrade/list',
    method: 'get',
    params: query
  })
}

// 查询二级行业详细
export function getSecondTrade(tradeSecondId) {
  return request({
    url: '/system/city/secondTrade/' + tradeSecondId,
    method: 'get'
  })
}

// 新增二级行业
export function addSecondTrade(data) {
  return request({
    url: '/system/city/secondTrade',
    method: 'post',
    data: data
  })
}

// 修改二级行业
export function updateSecondTrade(data) {
  return request({
    url: '/system/city/secondTrade',
    method: 'put',
    data: data
  })
}

// 删除二级行业
export function delSecondTrade(tradeSecondId) {
  return request({
    url: '/system/city/secondTrade/' + tradeSecondId,
    method: 'delete'
  })
}
